<div class="clients index">
	<h2><?php __('I18N_CLIENT_SECTION_ALL');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $paginator->sort(__('I18N_CLIENT_IDENTIFIER'));?></th>
			<th><?php echo $paginator->sort(__('I18N_CLIENT_LABEL'));?></th>
			<th class="actions"><?php __('I18N_CRUD_ACTIONS');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($clients as $client):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $client['Client']['name']; ?>&nbsp;</td>
		<td><?php echo $client['Client']['label']; ?>&nbsp;</td>
		<td class="actions">
                    <?php echo $html->link(__('I18N_CRUD_VIEW', true), '/clients/view/'. $client['Client']['id']); ?>
			<?php echo $html->link(__('I18N_CRUD_EDIT', true), '/clients/edit/'. $client['Client']['id']); ?>
			<?php echo $html->link(__('I18N_CRUD_DELETE', true), '/clients/delete/'. $client['Client']['id'], null, sprintf(__('I18N_CRUD_DELETE_CONFIRM', true), $client['Client']['label'])); ?>
                    <?php echo $html->link(sprintf(__('I18N_LIST_ENTITIES_RELATED', true), __('I18N_PROCESSES', true)), "/processes/index/" . $client['Client']['id']); ?>
                    <?php echo $html->link(sprintf(__('I18N_ADD_ENTITY', true), __('I18N_PROCESS', true)), '/processes/add/' . $client['Client']['id']); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $paginator->counter(array(
	'format' => __('I18N_PAGINATION_MESSAGE', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $paginator->prev('<< '.__('I18N_SITE_NAVIGATION_PREVIUS', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $paginator->numbers();?>
 |
		<?php echo $paginator->next(__('I18N_SITE_NAVIGATION_NEXT', true).' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('I18N__SITE_ACTIONS'); ?></h3>
	<ul>
		<li><?php echo $html->link(sprintf(__('I18N_ADD_ENTITY', true), __('I18N_CLIENT', true)), '/clients/add'); ?></li>
	</ul>
</div>